package com.weng.cloud.service8881.ribbon;

import com.weng.cloud.service8881.feign.LifeServiceExt;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: weng
 * @Date: 2022/3/5
 * @Description: com.weng.cloud.service8881.ribbon
 */
@RestController
public class RibbonController {

    @Resource
    private LifeServiceExt lifeServiceExt;

    @RequestMapping(value="/timeout",method = RequestMethod.GET)
    public String timeout() {
        return this.lifeServiceExt.timeout();
    }

    @RequestMapping(value="/retry",method = RequestMethod.GET)
    public String retry(){
        return this.lifeServiceExt.retry();
    }
}
